﻿//using System;
using System.Collections;
using UnityEngine;

namespace Assets.Scripts.Map
{
    public class MapDataGenerator
    {
        public static bool[,] Generate_1(int height, int width, float blockRate)
        {
            bool[,] ba = new bool[width, height];
            for (int i = 0; i < width; i++)
            {
                for (int j = 0; j < height; j++)
                {
                    ba[i, j] = Random.Range(0.0f, 1.0f) > blockRate;
                }
            }

            return ba;
        }
    }
}